/*
 * XML Type:  Diagram
 * Namespace: http:///org/isistan/flabot/edit/editormodel.ecore
 * Java type: org.isistan.flabot.edit.editormodelEcore.Diagram
 *
 * Automatically generated - do not modify.
 */
package org.isistan.flabot.edit.editormodelEcore;


/**
 * An XML Diagram(@http:///org/isistan/flabot/edit/editormodel.ecore).
 *
 * This is a complex type.
 */
public interface Diagram extends org.isistan.flabot.coremodelEcore.NamedElementModel
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Diagram.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.sFBDCFB7615E0FAB3CF0394CF3AD1FE99").resolveHandle("diagram4990type");
    
    /**
     * Gets array of all "coreModel" elements
     */
    org.isistan.flabot.coremodelEcore.CoreModel[] getCoreModelArray();
    
    /**
     * Gets ith "coreModel" element
     */
    org.isistan.flabot.coremodelEcore.CoreModel getCoreModelArray(int i);
    
    /**
     * Returns number of "coreModel" element
     */
    int sizeOfCoreModelArray();
    
    /**
     * Sets array of all "coreModel" element
     */
    void setCoreModelArray(org.isistan.flabot.coremodelEcore.CoreModel[] coreModelArray);
    
    /**
     * Sets ith "coreModel" element
     */
    void setCoreModelArray(int i, org.isistan.flabot.coremodelEcore.CoreModel coreModel);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "coreModel" element
     */
    org.isistan.flabot.coremodelEcore.CoreModel insertNewCoreModel(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "coreModel" element
     */
    org.isistan.flabot.coremodelEcore.CoreModel addNewCoreModel();
    
    /**
     * Removes the ith "coreModel" element
     */
    void removeCoreModel(int i);
    
    /**
     * Gets array of all "notes" elements
     */
    org.isistan.flabot.coremodelEcore.Note[] getNotesArray();
    
    /**
     * Gets ith "notes" element
     */
    org.isistan.flabot.coremodelEcore.Note getNotesArray(int i);
    
    /**
     * Returns number of "notes" element
     */
    int sizeOfNotesArray();
    
    /**
     * Sets array of all "notes" element
     */
    void setNotesArray(org.isistan.flabot.coremodelEcore.Note[] notesArray);
    
    /**
     * Sets ith "notes" element
     */
    void setNotesArray(int i, org.isistan.flabot.coremodelEcore.Note notes);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "notes" element
     */
    org.isistan.flabot.coremodelEcore.Note insertNewNotes(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "notes" element
     */
    org.isistan.flabot.coremodelEcore.Note addNewNotes();
    
    /**
     * Removes the ith "notes" element
     */
    void removeNotes(int i);
    
    /**
     * Gets array of all "children" elements
     */
    org.isistan.flabot.edit.editormodelEcore.VisualModel[] getChildrenArray();
    
    /**
     * Gets ith "children" element
     */
    org.isistan.flabot.edit.editormodelEcore.VisualModel getChildrenArray(int i);
    
    /**
     * Returns number of "children" element
     */
    int sizeOfChildrenArray();
    
    /**
     * Sets array of all "children" element
     */
    void setChildrenArray(org.isistan.flabot.edit.editormodelEcore.VisualModel[] childrenArray);
    
    /**
     * Sets ith "children" element
     */
    void setChildrenArray(int i, org.isistan.flabot.edit.editormodelEcore.VisualModel children);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "children" element
     */
    org.isistan.flabot.edit.editormodelEcore.VisualModel insertNewChildren(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "children" element
     */
    org.isistan.flabot.edit.editormodelEcore.VisualModel addNewChildren();
    
    /**
     * Removes the ith "children" element
     */
    void removeChildren(int i);
    
    /**
     * Gets array of all "folder" elements
     */
    org.isistan.flabot.edit.editormodelEcore.Folder[] getFolderArray();
    
    /**
     * Gets ith "folder" element
     */
    org.isistan.flabot.edit.editormodelEcore.Folder getFolderArray(int i);
    
    /**
     * Returns number of "folder" element
     */
    int sizeOfFolderArray();
    
    /**
     * Sets array of all "folder" element
     */
    void setFolderArray(org.isistan.flabot.edit.editormodelEcore.Folder[] folderArray);
    
    /**
     * Sets ith "folder" element
     */
    void setFolderArray(int i, org.isistan.flabot.edit.editormodelEcore.Folder folder);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "folder" element
     */
    org.isistan.flabot.edit.editormodelEcore.Folder insertNewFolder(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "folder" element
     */
    org.isistan.flabot.edit.editormodelEcore.Folder addNewFolder();
    
    /**
     * Removes the ith "folder" element
     */
    void removeFolder(int i);
    
    /**
     * Gets the "gridEnabled" attribute
     */
    boolean getGridEnabled();
    
    /**
     * Gets (as xml) the "gridEnabled" attribute
     */
    org.apache.xmlbeans.XmlBoolean xgetGridEnabled();
    
    /**
     * True if has "gridEnabled" attribute
     */
    boolean isSetGridEnabled();
    
    /**
     * Sets the "gridEnabled" attribute
     */
    void setGridEnabled(boolean gridEnabled);
    
    /**
     * Sets (as xml) the "gridEnabled" attribute
     */
    void xsetGridEnabled(org.apache.xmlbeans.XmlBoolean gridEnabled);
    
    /**
     * Unsets the "gridEnabled" attribute
     */
    void unsetGridEnabled();
    
    /**
     * Gets the "snapToGeometryEnabled" attribute
     */
    boolean getSnapToGeometryEnabled();
    
    /**
     * Gets (as xml) the "snapToGeometryEnabled" attribute
     */
    org.apache.xmlbeans.XmlBoolean xgetSnapToGeometryEnabled();
    
    /**
     * True if has "snapToGeometryEnabled" attribute
     */
    boolean isSetSnapToGeometryEnabled();
    
    /**
     * Sets the "snapToGeometryEnabled" attribute
     */
    void setSnapToGeometryEnabled(boolean snapToGeometryEnabled);
    
    /**
     * Sets (as xml) the "snapToGeometryEnabled" attribute
     */
    void xsetSnapToGeometryEnabled(org.apache.xmlbeans.XmlBoolean snapToGeometryEnabled);
    
    /**
     * Unsets the "snapToGeometryEnabled" attribute
     */
    void unsetSnapToGeometryEnabled();
    
    /**
     * Gets the "coreModel" attribute
     */
    java.lang.String getCoreModel2();
    
    /**
     * Gets (as xml) the "coreModel" attribute
     */
    org.apache.xmlbeans.XmlString xgetCoreModel2();
    
    /**
     * True if has "coreModel" attribute
     */
    boolean isSetCoreModel2();
    
    /**
     * Sets the "coreModel" attribute
     */
    void setCoreModel2(java.lang.String coreModel2);
    
    /**
     * Sets (as xml) the "coreModel" attribute
     */
    void xsetCoreModel2(org.apache.xmlbeans.XmlString coreModel2);
    
    /**
     * Unsets the "coreModel" attribute
     */
    void unsetCoreModel2();
    
    /**
     * Gets the "folder" attribute
     */
    java.lang.String getFolder2();
    
    /**
     * Gets (as xml) the "folder" attribute
     */
    org.apache.xmlbeans.XmlString xgetFolder2();
    
    /**
     * True if has "folder" attribute
     */
    boolean isSetFolder2();
    
    /**
     * Sets the "folder" attribute
     */
    void setFolder2(java.lang.String folder2);
    
    /**
     * Sets (as xml) the "folder" attribute
     */
    void xsetFolder2(org.apache.xmlbeans.XmlString folder2);
    
    /**
     * Unsets the "folder" attribute
     */
    void unsetFolder2();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static org.isistan.flabot.edit.editormodelEcore.Diagram newInstance() {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static org.isistan.flabot.edit.editormodelEcore.Diagram newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.isistan.flabot.edit.editormodelEcore.Diagram parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (org.isistan.flabot.edit.editormodelEcore.Diagram) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
